import request from '@/utils/request'

// 查询积分明细查询列表
export function listDetailed(query) {
  return request({
    url: '/detailed/detailed/list',
    method: 'get',
    params: query
  })
}

// 查询积分明细查询列表
export function listUserDetailed(query) {
  return request({
    url: '/detailed/detailed/listUserDetailed',
    method: 'get',
    params: query
  })
}

// 查询积分明细查询详细
export function getDetailed(detailedId) {
  return request({
    url: '/detailed/detailed/' + detailedId,
    method: 'get'
  })
}

// 新增积分明细查询
export function addDetailed(data) {
  return request({
    url: '/detailed/detailed',
    method: 'post',
    data: data
  })
}

// 修改积分明细查询
export function updateDetailed(data) {
  return request({
    url: '/detailed/detailed',
    method: 'put',
    data: data
  })
}

// 删除积分明细查询
export function delDetailed(detailedId) {
  return request({
    url: '/detailed/detailed/' + detailedId,
    method: 'delete'
  })
}
